package com.ruoyi.configuration.service.impl;

import java.util.List;

import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.configuration.mapper.MgNvitationRewardsConfMapper;
import com.ruoyi.configuration.domain.MgNvitationRewardsConf;
import com.ruoyi.configuration.service.IMgNvitationRewardsConfService;

/**
 * 推荐奖励配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-17
 */
@Service
public class MgNvitationRewardsConfServiceImpl implements IMgNvitationRewardsConfService 
{

	@Autowired
    private MgNvitationRewardsConfMapper mgNvitationRewardsConfMapper;

    /**
     * 查询推荐奖励配置
     * 
     * @param id 推荐奖励配置主键
     * @return 推荐奖励配置
     */
    @Override
    public MgNvitationRewardsConf selectMgNvitationRewardsConfById(String id)
    {
        return mgNvitationRewardsConfMapper.selectMgNvitationRewardsConfById(id);
    }

    /**
     * 查询推荐奖励配置列表
     * 
     * @param mgNvitationRewardsConf 推荐奖励配置
     * @return 推荐奖励配置
     */
    @Override
    public List<MgNvitationRewardsConf> selectMgNvitationRewardsConfList(MgNvitationRewardsConf mgNvitationRewardsConf)
    {
        return mgNvitationRewardsConfMapper.selectMgNvitationRewardsConfList(mgNvitationRewardsConf);
    }

    /**
     * 新增推荐奖励配置
     * 
     * @param mgNvitationRewardsConf 推荐奖励配置
     * @return 结果
     */
    @Override
    public int insertMgNvitationRewardsConf(MgNvitationRewardsConf mgNvitationRewardsConf)
    {
        mgNvitationRewardsConf.setCreateTime(DateUtils.getNowDate());
        mgNvitationRewardsConf.setUpdateTime(DateUtils.getNowDate());
        return mgNvitationRewardsConfMapper.insertMgNvitationRewardsConf(mgNvitationRewardsConf);
    }

    /**
     * 修改推荐奖励配置
     * 
     * @param mgNvitationRewardsConf 推荐奖励配置
     * @return 结果
     */
    @Override
    public int updateMgNvitationRewardsConf(MgNvitationRewardsConf mgNvitationRewardsConf)
    {
        mgNvitationRewardsConf.setUpdateTime(DateUtils.getNowDate());
        return mgNvitationRewardsConfMapper.updateMgNvitationRewardsConf(mgNvitationRewardsConf);
    }

    /**
     * 批量删除推荐奖励配置
     * 
     * @param ids 需要删除的推荐奖励配置主键
     * @return 结果
     */
    @Override
    public int deleteMgNvitationRewardsConfByIds(String[] ids)
    {
        return mgNvitationRewardsConfMapper.deleteMgNvitationRewardsConfByIds(ids);
    }

    /**
     * 删除推荐奖励配置信息
     * 
     * @param id 推荐奖励配置主键
     * @return 结果
     */
    @Override
    public int deleteMgNvitationRewardsConfById(String id)
    {
        return mgNvitationRewardsConfMapper.deleteMgNvitationRewardsConfById(id);
    }

	@Override
	public <VO> int updatePayStatus(VO payManager) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<MgNvitationRewardsConf> selectListById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<MgNvitationRewardsConf> selectListByIds(int[] ids) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public <VO> List<VO> getOrderLogVOSById(int id, Class<VO> voClass) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public <VO> int batchInsert(List<VO> data) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int batchInsert(List<MgNvitationRewardsConf> data, int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public MgNvitationRewardsConf selectById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<MgNvitationRewardsConf> selectList(MgNvitationRewardsConf manuscript) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int insert(MgNvitationRewardsConf manuscript) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int update(MgNvitationRewardsConf manuscript) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteByIds(Integer[] ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteById(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int count() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public long maxId() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public long minId() {
		// TODO Auto-generated method stub
		return 0;
	}
}
